/**
 *
 * FileName: CrmCorporationController.ts
 * Author:   徐寿春
 * Date:     2025/3/11 22:39
 *
 * 名称: 物流公司服务
 */
import request from "@/manager/base/RequestManager";

const API_BASE_URL = 'crm/corporation/';

/**
 * 创建公司信息
 * @param params
 */
export function createCorporation(params?: any) {
    return request.post(API_BASE_URL + 'createCorporation', params)
}

/**
 *  查询公司信息
 *
 * @author 徐寿春
 * 2025/3/12 23:11
 */
export function getCorporationInfo(params?: any) {
    return request.post(API_BASE_URL + 'getCorporationInfo', params)
}

export function getFeedbackRecord(params?: any) {
    return request.post(API_BASE_URL + 'getFeedbackRecord', params)
}

export function createFeedbackRecord(params?: any) {
    return request.post(API_BASE_URL + 'createFeedbackRecord', params)
}


export function getCorporationList(params?: any) {
    return request.post(API_BASE_URL + 'getCorporationList', params)
}


/**
 * 删除公司信息
 *
 * @param params
 */
export function deleteCorporationInfo(params?: any) {
    return request.post(API_BASE_URL + 'deleteCorporationInfo', params)
}


export function getCorporationListByPage(params?: any) {
    return request.post(API_BASE_URL + 'getCorporationListByPage', params)
}


export function getCorporationDetail(params?: any) {
    return request.post(API_BASE_URL + 'getCorporationDetail', params)
}

export function downExcel() {
    return request.down(API_BASE_URL + 'downExcel')
}
